
<template>
        <div class="NAME">我是首页</div>
</template>
<script>
import { onMounted } from '@vue/runtime-core'
import  { ces } from "@/api/wode/index.js";//引入对应的api
export default {
    setup(){
        onMounted(()=>{
                ces().then(res => {
                    console.log('我成功了')
                }).catch(res => {
                    console.log('我报错了')
                })
        })
    }
}
</script>
<style lang="scss">
.NAME {
  width: 100%;
  height: 60px;
  font-size: 17px;
  text-align: center;
  line-height: 100px;
  background: #13b5b1;
  padding: 20px;
}
</style>